/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Route By Method Member25</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.hl7.v3.V3Package#getRouteByMethodMember25()
 * @model extendedMetaData="name='RouteByMethod_._member_._25'"
 * @generated
 */
public enum RouteByMethodMember25 implements Enumerator {
	/**
	 * The '<em><b>GARGLE</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #GARGLE_VALUE
	 * @generated
	 * @ordered
	 */
	GARGLE(0, "GARGLE", "GARGLE"),

	/**
	 * The '<em><b>SOAK</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SOAK_VALUE
	 * @generated
	 * @ordered
	 */
	SOAK(1, "SOAK", "SOAK"),

	/**
	 * The '<em><b>INSUF</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #INSUF_VALUE
	 * @generated
	 * @ordered
	 */
	INSUF(2, "INSUF", "INSUF"),

	/**
	 * The '<em><b>SHAMPOO</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SHAMPOO_VALUE
	 * @generated
	 * @ordered
	 */
	SHAMPOO(3, "SHAMPOO", "SHAMPOO"),

	/**
	 * The '<em><b>SUCK</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SUCK_VALUE
	 * @generated
	 * @ordered
	 */
	SUCK(4, "SUCK", "SUCK"),

	/**
	 * The '<em><b>PO</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PO_VALUE
	 * @generated
	 * @ordered
	 */
	PO(5, "PO", "PO"),

	/**
	 * The '<em><b>TRNSLING</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #TRNSLING_VALUE
	 * @generated
	 * @ordered
	 */
	TRNSLING(6, "TRNSLING", "TRNSLING");

	/**
	 * The '<em><b>GARGLE</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>GARGLE</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #GARGLE
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int GARGLE_VALUE = 0;

	/**
	 * The '<em><b>SOAK</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SOAK</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SOAK
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SOAK_VALUE = 1;

	/**
	 * The '<em><b>INSUF</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>INSUF</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #INSUF
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int INSUF_VALUE = 2;

	/**
	 * The '<em><b>SHAMPOO</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SHAMPOO</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SHAMPOO
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SHAMPOO_VALUE = 3;

	/**
	 * The '<em><b>SUCK</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SUCK</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SUCK
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SUCK_VALUE = 4;

	/**
	 * The '<em><b>PO</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PO</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PO
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PO_VALUE = 5;

	/**
	 * The '<em><b>TRNSLING</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>TRNSLING</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #TRNSLING
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int TRNSLING_VALUE = 6;

	/**
	 * An array of all the '<em><b>Route By Method Member25</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RouteByMethodMember25[] VALUES_ARRAY =
		new RouteByMethodMember25[] {
			GARGLE,
			SOAK,
			INSUF,
			SHAMPOO,
			SUCK,
			PO,
			TRNSLING,
		};

	/**
	 * A public read-only list of all the '<em><b>Route By Method Member25</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RouteByMethodMember25> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Route By Method Member25</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RouteByMethodMember25 get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RouteByMethodMember25 result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Route By Method Member25</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RouteByMethodMember25 getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RouteByMethodMember25 result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Route By Method Member25</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RouteByMethodMember25 get(int value) {
		switch (value) {
			case GARGLE_VALUE: return GARGLE;
			case SOAK_VALUE: return SOAK;
			case INSUF_VALUE: return INSUF;
			case SHAMPOO_VALUE: return SHAMPOO;
			case SUCK_VALUE: return SUCK;
			case PO_VALUE: return PO;
			case TRNSLING_VALUE: return TRNSLING;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RouteByMethodMember25(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RouteByMethodMember25
